07. Promises with .map

Promises with .map

2.7 Promises with .map Quiz

Instructions

First, if you haven't already, read this and follow the instructions on working with the Exoplanet Explorer repo.

  1. Checkout the map-start branch and navigate to app/scripts/app.js.
  2. Use .map to fetch all the planets in parallel.
    • Call .map on an array and pass it a function.
    • .map will execute the function against each element in the array immediately.

Documentation for .map

Checkout the map-solution branch to see my code!

Solution

2.7 Promises with .map Solution